import React, { memo } from 'react';
import { IResourceContentConfig } from './schema';

const ResourceContent = memo((props: IResourceContentConfig) => {
  const { tooltip, name, width, height } = props;
  return (
    <div title={tooltip} style={{ width, height }}>
      {name}
    </div>
  );
});

export default ResourceContent;
